package com.tdkj.model.risevalue;

import java.sql.Timestamp;
import java.util.Map;

import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.MapKeyColumn;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;

@Entity
@Table(name = "risevalue_service")
public class BeanService extends BaseEntity implements java.io.Serializable {

	private String name ;
	
	private Timestamp createTime ;
	
	private Map<String, String> properties;
	
	@ElementCollection
	@CollectionTable(name="risevalue_service_properties",joinColumns={@JoinColumn(name="service_id",referencedColumnName="id")})
	@MapKeyColumn(name="_key")
	@Column(name="_value")
	public Map<String, String> getProperties() {
		return properties;
	}
	public void setProperties(Map<String, String> properties) {
		this.properties = properties;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
}